package com.api.services;

public class DomainUser {

	private final String email;

	private final String password;

	private final String appId;

	DomainUser(String email, String password, String appId) {

		if (email == null || password == null || appId == null) {
			throw new IllegalArgumentException("Constructor fields may not be null");
		}
		this.email = email;
		this.password = password;
		this.appId = appId;
	}

	public String getEmail() {
		return email;
	}

	public String getPassword() {
		return password;
	}

	public String getAppId() {
		return appId;
	}

	public String toString() {

		return String.format("DomainUser(%s,%s,%s)", email, password, appId);
	}
}
